package com.etalk.crm.pojo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class IntegralRecord implements Serializable {

	/**
     * integral_record.id
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer id;

    /**
     * integral_record.person_id
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer personId;

    /**
     * integral_record.type (币处理方式：1.收入，2支出)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer type;

    /**
     * integral_record.ways (积分来源与去向：来源：来源：1赠送、2推荐分享、3完成任务得积分；去向：1提现、2兑换E币、3罚款、4被推荐人套餐取消、5转赠好友6.套餐延期.7兑换课时.8壹基金.9购物卡.10.积分转让.11话费充值.12审核未通过退回.13兑换课程.14活动兑换)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer ways;

    /**
     * integral_record.pay_type (积分提现方式：1支付宝转账、2银行转账)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer payType;

    /**
     * integral_record.lesson_id (预约课程的id)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer lessonId;

    /**
     * integral_record.amount (提现金额或兑换E币金额)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private BigDecimal amount;

    /**
     * integral_record.integral (实际收支积分)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer integral;

    /**
     * integral_record.total_integral (积分余量)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer totalIntegral;

    /**
     * integral_record.valid_date
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Date validDate;

    /**
     * integral_record.order_id (积分来源关联订单id)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private String orderId;
    
    /**
     * integral_record.remark (备注信息)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private String remark;

    /**
     * integral_record.state (状态：1有效，0无效)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Integer state;

    /**
     * integral_record.record_time (收支时间)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private Date recordTime;

    /**
     * integral_record.recorder (记录人)
     * @ibatorgenerated 2015-11-19 17:43:43
     */
    private String recorder;

}
